#include "receiver.h"
#include <iostream>

Receiver::Receiver()
{}

Receiver::~Receiver()
{}

ConcreteReceiver1::ConcreteReceiver1()
{
    std::cout << "创建接收者1实例" << std::endl;
}

ConcreteReceiver1::~ConcreteReceiver1()
{
    std::cout << "释放接收者1实例" << std::endl;
}

void ConcreteReceiver1::DoSomething()
{
    std::cout << "接收者1业务..." << std::endl;
}

ConcreteReceiver2::ConcreteReceiver2()
{
    std::cout << "创建接收者2实例" << std::endl;
}

ConcreteReceiver2::~ConcreteReceiver2()
{
    std::cout << "释放接收者2实例" << std::endl;
}

void ConcreteReceiver2::DoSomething()
{
    std::cout << "接收者2业务..." << std::endl;
}